package com.chf.job.service.impl;

import com.chf.job.dao.ResumeVoMapper;
import com.chf.job.pojo.Deliver;
import com.chf.job.service.ResumeVoService;
import com.chf.job.vo.ResumeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class ResumeVoServiceImpl implements ResumeVoService {
    @Autowired
    private ResumeVoMapper resumeVoMapper;
    /**
     * 查询所有未处理的简历
     * @param delivers
     * @return
     */
    @Override
    public List<ResumeVo> getByList(List<Deliver> delivers) {
        List<ResumeVo> resumeVoList = new ArrayList<>();
        for (Deliver deliver: delivers) {
            ResumeVo resumeVo = resumeVoMapper.getByEmail(deliver.getDeliverEmail());
            resumeVoList.add(resumeVo);
        }
        return resumeVoList;
    }
}
